#ifndef LEO_H_INCLUDED
#define LEO_H_INCLUDED
#define GFX_W 800
#define GFX_H 600
#define NB_IMAGES 7


struct Leo
{
    BITMAP * img_right[NB_IMAGES];
    BITMAP * img_left[NB_IMAGES];
    int x, y;
    int vie;
    int direction;
};
typedef struct Leo Leo;

struct Rec
{
    int xr1;
    int yr1;
    int xr2;
    int yr2;
    int color;
};
typedef struct Rec Rec;

void init_rec (Rec *rec);
int get_pixel(BITMAP* Buffer,int x,int y);

void load_leo(Leo *leo);
void destroy_leo(Leo *leo);
void init_leo(Leo *leo);

void move_leo_right(Leo *leo,int *compteur);
void move_leo_left(Leo *leo,int *compteur);
void jump_leo(Leo *leo);

void move_leo(Leo *leo,int *compteur);
void draw_leo(Leo leo,BITMAP *Buffer, int compteur);

#endif // LEO_H_INCLUDED
